Enable\Cors\Helpers\Option S

Total Complexity 48
Dependencies 1
Dependents 4
Total lines 369
Lines of code 146
Logical lines of code 79
Comment lines 121
Methods 23
Properties 0

Methods 23

Method Rating Maintainability Complexity Lines of code
validate()
A
48 9 33
set_option()
S
62 8 9
is_cors_request()
S
61 3 12
__construct()
S
62 3 11
prepend_value()
S
64 3 10
save()
S
64 2 10
has_wildcard()
S
73 2 4
has_header()
S
78 2 3
has_methods()
S
78 2 3
should_allow_image()
S
82 1 3
extract()
S
79 1 3
get_allowed_for()
S
82 1 3
get_domains()
S
68 1 8
is_method_allowed()
S
73 1 4
is_current_origin_allowed()
S
74 1 4
should_allow_font()
S
82 1 3
should_allow_credentials()
S
82 1 3
get_allowed_methods()
S
82 1 3
is_enable()
S
82 1 3
get()
S
80 1 3
delete()
S
77 1 4
add_default()
S
76 1 4
get_allowed_header()
S
82 1 3